package com.stark.wechat.message.request;

import java.util.Map;

/**
 * 文本消息。
 * @author Ben
 * @since 1.0.0
 * @version 1.0.0, 2017/8/5
 */
public class TextMessage extends Message {
	private String Content;	// 文本消息内容
	
	public TextMessage(Map<String, String> requestMap) {
		ToUserName = (String) requestMap.get("ToUserName");
		FromUserName = (String) requestMap.get("FromUserName");
		CreateTime = Long.parseLong(requestMap.get("CreateTime"));
		MsgType = (String) requestMap.get("MsgType");
		Content = (String) requestMap.get("Content");
		MsgId = Long.parseLong(requestMap.get("MsgId"));
	}

	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}
}
